home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / misc / xref_v1.1.lha / XRef / Tools / lib / showerror.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-22  |  747 b   |  42 lines

  1. /*
  2. ** $PROJECT: xrefsupport.lib
  3. **
  4. ** $VER: showerror.c 1.1 (04.09.94)
  5. **
  6. ** by
  7. **
  8. ** Stefan Ruppert , Windthorststraße 5 , 65439 Flörsheim , GERMANY
  9. **
  10. ** (C) Copyright 1994
  11. ** All Rights Reserved !
  12. **
  13. ** $HISTORY:
  14. **
  15. ** 04.09.94 : 001.001 :  initial
  16. */
  17.  
  18. /* ------------------------------ include's ------------------------------- */
  19.  
  20. #include "/source/Def.h"
  21.  
  22. /* ------------------------------- function ------------------------------- */
  23.  
  24. void showerror(STRPTR prgname,STRPTR header,LONG error)
  25. {
  26.    UBYTE buffer[100];
  27.  
  28.    struct EasyStruct es = {
  29.       sizeof(struct EasyStruct),
  30.       0,
  31.       NULL,
  32.       "%s",
  33.       "End"};
  34.  
  35.    es.es_Title = prgname;
  36.  
  37.    Fault(error,header,buffer,sizeof(buffer));
  38.  
  39.    EasyRequest(NULL,&es,NULL,buffer);
  40. }
  41.  
  42.